<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>3D变换</title>
		<link rel="stylesheet" type="text/css" href="css/reset-min.css"/>
		<style type="text/css">
			.box{
				height: 400px;
				width: 400px;
				border: 1px solid blue;
				
				position: absolute;
				top: 0;
				bottom: 0;
				left: 0;
				right: 0;
				margin: auto;
				
				perspective: 500px;
				background-color: rgba(100,100,100,.5);
				/**
				 * 营造有层级的3d舞台
				 * 作用于直接子元素，不可集成属性
				 */
				transform-style: preserve-3d;
			}
			.inner{
				height: 200px;
				width: 200px;
				background-color: #BBFFAA;
				border: 1px solid blue;
				text-align: center;
				font: 50px/200px "微软雅黑";
				/* border-radius: 50%; */
				
				position: absolute;
				top: 0;
				bottom: 0;
				left: 0;
				right: 0;
				margin: auto;
				
				transform: rotateX(45deg) translateZ(100px);
			}
		</style>
	</head>
	<body>
		<div class="box">
			<div class="inner">
				Hello
			</div>
		</div>
	</body>
</html>
